//! Cluster Node Manager
//!
//! A large-scale cluster node management tool based on Raft consensus algorithm
//! and Tokio async runtime, providing high-availability and strong consistency
//! for distributed cluster node management.

pub mod api;
pub mod cluster;
pub mod config;
pub mod error;
pub mod events;
pub mod health;
pub mod metrics;
pub mod network;
pub mod raft;
pub mod raft_network; // multi-node raft network HTTP RPC scaffold
pub mod raft_store;
pub mod storage;
pub mod types;

// Re-exports
pub use cluster::ClusterManager;
pub use config::Config;
pub use error::{Error, Result};

/// Node ID type
pub type NodeId = u64;

/// Cluster ID type
pub type ClusterId = String;

/// Node address type
pub type NodeAddr = String;
